﻿using System.Collections.Generic;
using System.Linq;

namespace Pyramid.Hardware.Operations
{
    public class BlankOperation
        : Operation
    {
        private IEnumerable<ILine> outputs;

        public BlankOperation(IEnumerable<ILine> inputBusA, IEnumerable<ILine> inputBusB)
            : base(inputBusA, inputBusB)
        {
            this.outputs = Enumerable.Repeat<ILine>(new FixedInputLine(Trivalent.Unknown), inputBusA.Count());
        }

        public override IEnumerable<ILine> OutputBus
        {
            get
            {
                return outputs;
            }
        }
    }
}
